<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('blog_musics', function (Blueprint $table) {
            $table->id();
            $table->string('name')->comment('名称');
            $table->string('singer')->comment('歌手');
            $table->string('cover_image')->comment('封面图');
            $table->string('url')->comment('链接');
            $table->tinyInteger('status')
                ->unsigned()
                ->default(1)
                ->comment('状态:0=隐藏,1=显示');
            $table->timestamps();
            $table->softDeletes();
            $table->comment('【博客】音乐表');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('blog_musics');
    }
};
